package com.ruoyi.common.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ：jijinwu
 * @ClassName WxAppConfig
 * @date ：2024/7/17 - 16:10
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @description: 读取微信开放平台配置
 **/

@Component
@ConfigurationProperties(prefix = "wx-app")
public class WeChatConfig {

    /**
     * 小程序应用id
     */
    private String appId;
    /**
     * 秘钥
     */
    private String appSecret;

    /**
     * 获取openid的请求url
     */
    private String wxUrl;


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getWxUrl() {
        return wxUrl;
    }

    public void setWxUrl(String wxUrl) {
        this.wxUrl = wxUrl;
    }
}

